package com.example.housesrv.common;

public enum RestCode {
    OK(0,"OK"),
    UNKNOWN_ERROR(1,"房产服务异常"),
    WRONG_PAGE(10100,"页码不合法"),
    USER_NOT_FOUND(10101,"用户未找到"),
    ILLEGAL_PARAMS(10102,"参数不合法");

    public final int code;
    public final String msg;
    private RestCode(int code, String msg) {
        this.code = code;
        this.msg  = msg;
    }
}
